package TransactionImplementation

import "SPC/Database"

type DeleteEmployeeTransaction struct {
	itsEmpid int
}

func NewDeleteEmployeeTransaction(empid int) *DeleteEmployeeTransaction{
	return &DeleteEmployeeTransaction{
		empid,
	}
}

func (d *DeleteEmployeeTransaction)Execute(){
	Database.GetPayrollDatabase().DeleteEmployee(d.itsEmpid)
}